import request from '@/utils/request'

// 查询雷达信息列表
export function listGpslocation(query) {
  return request({
    url: '/dyn/gpslocation/list',
    method: 'get',
    params: query
  })
}

// 查询雷达信息详细
export function getGpslocation(gpslocationid) {
  return request({
    url: '/dyn/gpslocation/' + gpslocationid,
    method: 'get'
  })
}

// 新增雷达信息
export function addGpslocation(data) {
  return request({
    url: '/dyn/gpslocation',
    method: 'post',
    data: data
  })
}

// 修改雷达信息
export function updateGpslocation(data) {
  return request({
    url: '/dyn/gpslocation',
    method: 'put',
    data: data
  })
}

// 删除雷达信息
export function delGpslocation(gpslocationid) {
  return request({
    url: '/dyn/gpslocation/' + gpslocationid,
    method: 'delete'
  })
}
